laravel collection toQuery

27

use App\Models\User;

$users = User::where('status', 'VIP')->get();

$users->toQuery()->update([
    'status' => 'Administrator',
]);

Comments

Submit
0 Comments